package com.yst.sqlbuilder.mathExpression;

import com.yst.lambda.TableFieldFunc;
import com.yst.sqlbuilder.GenerateParam;

import java.util.Map;

public class MaxFieldExpression<T> extends FieldExpression<T>{
    @Override
    protected String formatField(String field) {
        return String.format("MAX(%s)",field);
    }

    public MaxFieldExpression(TableFieldFunc<T, ?> field, String alias) {
        super(field, alias);
    }
    public MaxFieldExpression(TableFieldFunc<T, ?> field) {
        super(field);
    }
    @Override
    public String generateExpression(GenerateParam param) {
        return super.generateExpression(param);
    }
}
